/**
 *
 */
package com.util;

import java.io.InputStream;
import java.util.Properties;

/**
 * @author kareem_yehya
 * 
 */
public class PropertiesManger
{

	PropertiesManger()
	{

	}

	private void loadProperties()
	{

		try
		{
			InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("PropertiesManger.properties");

			Properties properties = new Properties();

			System.out.println("InputStream is: " + inputStream);

			// load the inputStream using the Properties
			properties.load(inputStream);
			// get the value of the property
			String propValue = properties.getProperty("Process tasks Path");

			System.out.println("Property value is: " + propValue);
		}catch(Exception e)
		{
			e.printStackTrace();
		}finally
		{
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		PropertiesManger properties = new PropertiesManger();
		properties.loadProperties();
	}

}
